package com.example.mainserver.mapper;

import com.example.common.model.MailSendLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface MailSendLogMapper {


    void insert(MailSendLog mailSendLog);

    void updateStatusByMsgId(@Param("msgId") String msgId,@Param("status") Integer status);

    List<MailSendLog> selectLogsByStatusWithTryTime(@Param("status") Integer status,@Param("date") Date date);

    void updateCountByMsgId(String msgId);
}
